﻿
using System;
using GameControls;
using GameLibrary.Model;

namespace GameDesigner2
{
    public class ActiveGame
    {
        private static GameDisplayer _GameDisplayer;

        public delegate void GameChangedHandler(GameDisplayer game);
        public static event GameChangedHandler GameChangedEvent;

        public static GameDisplayer GameDisplayer
        {
            get
            {
                return _GameDisplayer;
            }
            set
            {
                _GameDisplayer = value;
                if (GameChangedEvent != null)
                {
                    GameChangedEvent(value);
                }
            }
        }
    }
}
